import com.cn.Mapper.goodsMapper.GoodsMapper;
import com.cn.entity.goods.Goods;
import com.cn.util.SqlsesstionUtil;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

/**
 * @ClassName testGoods
 * @Description TODO
 * @Author yujiajing
 * @Date 2022/10/14 9:26
 * @Version 1.0
 */
public class testGoods {
    @Test
    public  void showAll(){
        SqlSession sqlSession= SqlsesstionUtil.getSqlSession();
        GoodsMapper goodsMapper=sqlSession.getMapper(GoodsMapper.class);
        List<Goods>goodsList=goodsMapper.showAll();
        System.out.println(goodsList.toString());
    }
}
